import { post,get } from "../request"
import { repairsList ,repairsDelete,repairsDeleteall,repairstype,repairsAdd, builList,builAdd,builDelete } from "./type"
export const repairList = (params?:repairsList) => get("repairs/list", params);
export const repairDelete = (params?:repairsDelete) => get("repairs/delete", params);
export const repairDeleteall = (params?:repairsDeleteall) => post("repairs/deleteall", params);
export const repairAdd = (params?:repairsAdd) => post("repairs/add", params);
export const repairstateList = (params?:repairstype) => get("repairstate/list", params); //状态
export const repairstypeList = (params?:repairstype) => get("repairstype/list", params);  //类型
export const userinfoList = (params?:repairstype) => get("userinfo/list", params);  //类型
export const buildingList = (params?:builList) => get("building/list", params);
export const buildingAdd = (data?:builAdd) => post("building/add", data);
export const buildingDelete = (params?:builDelete) => get("building/delete", params);